﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IlianaRuler.CPL;
using IlianaRuler.DAL;

namespace IlianaRuler
{
    class Program
    {
        static void Main(string[] args)
        {
            Communicator com = new Communicator();
            try
            {
                ServerConfigData d = Business.GetServerConfig();
                com.Connect(d.ServerIp, d.ServerPort, d.CustomerID, d.Password);
                while(true)
                {
                    string s = Console.ReadLine();
                    if(s == "exit")
                        break;
                }
            }
            catch(Exception e)
            {
                Console.WriteLine(e.Message);
                Console.ReadKey();
            }
        }
    }
}
